# ifndef DEF_GAME
# define DEF_GAME

# include "Source.h"

/**
*	The main class of the game containing the main loop.
*/

class Game
{
	public:

	Game();
	~Game();

	void init();
	void receiveEvent( const Event evt);
	
	void createNewGame();

	void changeWorld( const std::string);

	void central( Ogre::Real);

	private:

	void startRendering();
	void handleEvents();

	std::queue<Event> myEvents;
	State myState;

	Renderer* myRenderer;
	GUI* myGUI;
	AI *myAI;
	EventListener* myEventListener;

	World* myWorld;
};

# endif